#ifndef _LUAUNIT_H
#define _LUAUNIT_H

class LUAVector;

class LUAUnit
{
public:
	LUAUnit() : cr(0)
	{
	}
	Creature* cr;
	LUAUnit SpawnCreature(ui32 entry, float x, float y, float z, float o);
	LUAUnit SpawnCreature(ui32 entry);
	void SetHealth(float pct);
	void SetHealth(ui32 abso);
	LUAVector GetPosition();
	float GetOrientation() { if(cr) return cr->GetOrientation(); else return 0.0f; }
	void SetUI32Value(ui32 index, ui32 value);
	ui32 GetUI32Value(ui32 index);
	ui32 GetEntry() { if(cr) return cr->GetEntry(); else return 0; }
	static scope RegisterLUAUnit();
};

#endif